<template>
	<view class="flat_box" :style="'padding: 0 '+margin+';'">
			<view class="flat" :style="'background: '+bgColor+';padding: 0 '+padding+';'">
				<slot></slot>
			</view>
		</view>
	
</template>

<script>
	export default {
		name:"flat_box",
		props: {
			bgColor: {
				type: String,
				default:'#fff'
			},
			padding: {
				type: String,
				default:'30rpx'
			},
			margin:{
				type: String,
				default:'30rpx'
			}
		},
		data() {
			return {
				
				
			};
		}
	}
</script>

<style lang="scss" scoped>
.flat_box{
	width: 100%;
	padding: 0 30rpx;
	box-sizing: border-box;
	.flat{
		position: relative;
		padding: 0 30rpx;
		border-radius: 20rpx;
		box-sizing: border-box;
		*{
			font-size: 28rpx;
		}
	}
}
</style>
